package com.hmall.vo;

import java.math.BigDecimal;
import java.util.Date;

public class HistoryVo {

    /**
     * 商品id
     */
    private Integer historyId;

    private Integer id;

    /**
     * 分类id,对应mall_category表的主键
     */
    private Integer categoryId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品副标题
     */
    private String subtitle;


    private String mainImage;


    private BigDecimal price;


    private Integer stock;


    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private String productno;

    private Integer shopid;

    private BigDecimal uprice;

    private Integer commentNum;

    private Integer special;

    private Integer searchHot;

    /**
     * 是否是新品，0：不是新品，1：是新品
     */
    private Integer isnew;

    /**
     * 图片地址,json格式,扩展用
     */

    private String subImages;

    /**
     * 商品详情
     */
    private String detail;

    private String content;

    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getProductno() {
        return productno;
    }

    public void setProductno(String productno) {
        this.productno = productno;
    }

    public Integer getShopid() {
        return shopid;
    }

    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    public BigDecimal getUprice() {
        return uprice;
    }

    public void setUprice(BigDecimal uprice) {
        this.uprice = uprice;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getSpecial() {
        return special;
    }

    public void setSpecial(Integer special) {
        this.special = special;
    }

    public Integer getSearchHot() {
        return searchHot;
    }

    public void setSearchHot(Integer searchHot) {
        this.searchHot = searchHot;
    }

    public Integer getIsnew() {
        return isnew;
    }

    public void setIsnew(Integer isnew) {
        this.isnew = isnew;
    }

    public String getSubImages() {
        return subImages;
    }

    public void setSubImages(String subImages) {
        this.subImages = subImages;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public HistoryVo(Integer historyId, Integer id, Integer categoryId, String name, String subtitle, String mainImage, BigDecimal price, Integer stock, Integer status, Date createTime, Date updateTime, String productno, Integer shopid, BigDecimal uprice, Integer commentNum, Integer special, Integer searchHot, Integer isnew, String subImages, String detail, String content) {
        this.historyId = historyId;
        this.id = id;
        this.categoryId = categoryId;
        this.name = name;
        this.subtitle = subtitle;
        this.mainImage = mainImage;
        this.price = price;
        this.stock = stock;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.productno = productno;
        this.shopid = shopid;
        this.uprice = uprice;
        this.commentNum = commentNum;
        this.special = special;
        this.searchHot = searchHot;
        this.isnew = isnew;
        this.subImages = subImages;
        this.detail = detail;
        this.content = content;
    }

    @Override
    public String toString() {
        return "HistoryVo{" +
                "historyId=" + historyId +
                ", id=" + id +
                ", categoryId=" + categoryId +
                ", name='" + name + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", mainImage='" + mainImage + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", productno='" + productno + '\'' +
                ", shopid=" + shopid +
                ", uprice=" + uprice +
                ", commentNum=" + commentNum +
                ", special=" + special +
                ", searchHot=" + searchHot +
                ", isnew=" + isnew +
                ", subImages='" + subImages + '\'' +
                ", detail='" + detail + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}